/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package newpackage;

/**
 *
 * @author rt
 */
public class Zapis {
      public static void zapisz(ArrayList<ZbiorBiblioteczny> lista), String plik)
      {

      {
        try {
            File f = new File(plik);
            FileOutputStream file = new FileOutputStream(f);
            BufferedOutputStream buff = new BufferedOutputStream(file);
            ObjectOutputStream data = new ObjectOutputStream(buff);
            data.writeObject(baza);
            data.flush();
            data.close();
        } catch (IOException e) {
            System.out.println("Wyjatek -- " + e.toString());
        }
    }

}

    private static class ArrayList<T> {

        public ArrayList() {
        }
    }
